<template>
  <div id="app">
    <!--导航栏开始-->
    <!-- <nav-tab v-show="!mobile"></nav-tab> -->

    <router-view/>
    
    <!-- 页脚开始 -->
    <!-- <Footer v-show="!mobile"></Footer> -->
  </div>
</template>

<script>
import NavTab from './components/navtab'
import Footer from './components/footer'
export default {
  name: 'App',
  data(){
      return {
          mobile: false
      }
  },
  components: {
    NavTab,
    Footer,
  },
  mounted () {
    if (
      navigator.userAgent.match(
        /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
      )
    ) {
      this.mobile = true
    } else {
      this.mobile = false
    }
  },
  methods:{
      //是否显示头部
      navtab:function (bool) {
        this.navtab_show = bool;
      },
      //是否显示底部
      footer:function (bool) {
          this.footer_show = bool;
      }
  }
}

</script>

<style>
</style>
